#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPixmap>
#include "getpixmap.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    QString main_ipAddr;
    QString main_port;

    void init();


private slots:
    void on_btn_start_clicked();
    void on_btn_screenshot_clicked();
    void on_btn_quit_clicked();
    void main_getOnePixmap(QPixmap);

private:
    Ui::MainWindow *ui;
    bool main_state = false;
    bool main_btnStartSta = false;
    GetPixmap *getPixmap;
    QThread *thread;

    QPixmap show_pix;
    QPixmap save_pix;
};

#endif // MAINWINDOW_H

